/**
 * query(params)
 * request('/api/product', {
 *  method: 'POST',
 *  data: params
 * })
 */
// 传入的参数是一个有id属性的对象
interface queryItem {
    id: string
}
import request from '@/utils/request'
export async function query(params: queryItem) {
    return request('/api/product', {
        method: 'POST',
        data: params
    })
}